<?php

//myst.php
//This configuration file contains many configuration options for the use of this CP.

$myst = array(
	'Version'			=>	'0.0.1',						//CP Version. DO NOT CHANGE. BAD STUFF WILL HAPPEN (for srs).
	'CPName'			=>	'Myst Control Panel',			//Name of this CP. Will be displayed in the title bar with most pages, along with the header
	'ServerName'		=>	'YourRO',						//Name of your server.
	'HostName'			=>	'http://domain.com/',			//Hostname in which MystCP will run. MUST BEGIN WITH http:// AND END WITH A FORWARD SLASH (/)
	'AdminEmail'		=>	'admin@server.com',				//Administrator's email address. Will be displayed upon a failure on a page.
	'ShowVersion'		=>	'1',							//Show version information in footer? 1=yes, 0=no
	'AllowReg'			=>	1,								//Allow Registrations? 1=yes, 0=no
	'Theme'				=>	'default',						//Default theme.
	'CPDate'			=>	'Y/m/d',						//Date format. See PHP Manual for details.
	'CPDateTime'		=>	'Y/m/d H:i:s',					//Date/Time format. See PHP Manual for details.
	'MaxResults'		=>	25,								//Results to show per page.
	'AnnounceDisply'	=>	1,								//Show announcements on front page? 1=yes, 0=no
	'MinUserLength'		=>	4,								//Minimum username length for new registrations.
	'MaxUserLength'		=>	23,								//Maximum username length for new registrations.
	'MinPassLength'		=>	4,								//Minimum password length for new registrations.
	'MaxPassLength'		=>	23,								//Maximum password length for new registrations.
	'LostPass'			=>	1,								//Allow usage of Lost Password function (needs username and access to the email the user registered with) 1=yes, 0=no
	'RandPassLength'	=>	10,								//Length of the random password generated when lost password is used. If above set to 0, this setting has no effect.
	'MaxDupEmails'		=>	1,								//Allow how many duplicate email addresses? If set to 0, THIS WILL DISABLE REGISTRATION. recommended: 1.
	'EmailConf'			=>	1,								//Require email confirmation on new registrations? 1=yes, 0=no
	'ChangeEmailConf'	=>	0,								//Require email confirmation on change of email address? 1=yes, 0=no
	'EmailConfExp'		=>	72,								//Number in hours in which the email confirmation of the above two settings will expire.
	'reCaptcha'			=>	1,								//Use reCAPTCHA? Needs reCAPTCHA Account: http://rerecaptcha.net. HIGHLY RECOMMENDED.
	'reCaptchaPub'		=>	'',								//reCAPTCHA Public Key
	'reCaptchaPrivate'	=>	'',								//reCAPTCHA Private Key
	'UseMD5'			=>	1,								//Use MD5 encryption on passwords. HIGHLY RECOMMENDED.
	'donations'			=>	array(							//Settings related to donations and item shop
		'accept'		=>	0,								//Accept donations? 1=yes, 0=no
		'email'			=>	'you@domain.com',				//Address where you accept your donations.
		'rate'			=>	array(1, 2),					//Exchange rate for your donations. First parameter is number of credits, second parameter is dollars. 
															//(Default is 1 credit for 2 dollars: array(1, 2) )
		'itemshop'		=>	1,								//Use the item shop? 1=yes, 0=no
		'log'			=>	2,								//Determines what we show for logs from donations. Possible values:
															//0 = no logs
															//1 = Show only account logs
															//2 = Show server donation logs, no names and account logs
															//3 = Show server donation logs, names included and account logs
	),
	'ftp'				=>	array(							//Settings related to FTP connections
		'use'			=>	1,								//Use the FTP system built into the CP for editing your files? 1=yes, 0=no
		'ftpuser'		=>	'ftp',							//what username should we use to login to FTP?
		'ftppass'		=>	'password'						//What password should we use to login to FTP?
	),
	'HomePage'			=>	$myst['MenuItems']['Main Menu']['Home'],	// What Array in the menu items should the CP default to if a module is not specified?
	/* This section is the options for menu items. Each section in the array corresponds to a section in the menu.
	 * If you need to access an External URL, enter 'exturl' into the array. Examples below.
	 * The names of the menu items also correspond to the page names.
	 */
	'MenuItems'			=>	array(
		'Main Menu'			=>	array(
			'Home'				=>	array('module' => 'main', 'action' => 'index'),
			'Forums'			=>	array('module' => 'exturl', 'action' => 'http://your-domain.com/forums'),
		),
		'Account'			=>	array(
			'Register'			=>	array('module' => 'account', 'action' => 'register'),
			'My Account'		=>	array('module' => 'account', 'action' => 'view'),
			'Login'				=>	array('module' => 'account', 'action' => 'login'),
			'Logout'			=>	array('module' => 'account', 'action' => 'logout'),
			'History'			=>	array('module' => 'account', 'action' => 'history'),
		),
		'Character'			=>	array(
			'Who\'s Online'		=>	array('module' => 'character', 'action' => 'online'),
			'Reset Character'	=>	array('module' => 'character', 'action' => 'reset'),
			'Guild Management'	=>	array('module' => 'character', 'action' => 'guild'),
			'Character Management'	=> array('module' => 'character', 'action' => 'manage'),
		),
		'Donation'			=>	array(
			'Donate!'			=>	array('module' => 'donate', 'action' => 'donate'),
			'Item Shop'			=>	array('module' => 'donate', 'action' => 'shop'),
			'Logs'				=>	array('module' => 'donate', 'action' => 'logs'), //Depends on donations, log setting above. If 0, will not display.
		),
		'Information'		=>	array(
			'Character Ladder'	=>	array('module' => 'server', 'action' => 'charladder'),
			'Guild Ladder'		=>	array('module' => 'server', 'action' => 'guildladder'),
			'Server Info/Status'	=> array('module' => 'server', 'action' => 'status'),
		),
		'Database'			=>	array(
			'Item Database'		=>	array('module' => 'database', 'action' => 'item'),
			'Mob Database'		=>	array('module' => 'database', 'action' => 'mob'),
		),
	),
	'skins'			=>	array(	// Here is where you set the different skins you have and their paths. Path is full path from the root directory, INCLUDING A TRAILING SLASH.
		'default'		=>	"/templates/default/",			//The default template.
		'yourtemplate'	=>	"/templates/yourtemplate",		//Your Template Here.
	),
	
	
);
